<?php
use \app\service\DataHelper;
use \app\service\UrlService;
use yii\widgets\LinkPager;
use yii\widgets\ActiveForm;
/*
 * @var $pagination app\controllers\ClassController;
 * */
?>

<?php $form = ActiveForm::begin() ?>
<?= $form->field($model,'name')->label('班级名称') ?>
<?= $form->field($model,'headmasterid')->label('班主任')->dropdownList($headmaster); ?>
<input type="hidden" value="" id="teachername">
<button class="btn btn-success" type="submit">添加</button>
<?php ActiveForm::end();?>


